package cn.ulc.common.constant;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public final class PubDataConstant {

    public static final Integer DATA_TYPE_ROLE = 100; // 员工角色
    public static final Integer DATA_TYPE_COUPON = 101; // 优惠券类型
    public static final Integer DATA_TYPE_BILL = 102; // 对账单类型
    public static final Integer DATA_TYPE_NOTICE_LOCATION = 103; // 公告广播位置
    public static final Integer DATA_TYPE_AD_LOCATION = 104; // 广告位位置
    public static final Integer DATA_TYPE_MEMBER_POWER = 105; // 会员权益

    public static List<Map<String,Object>> getDataType(){
        List<Map<String,Object>> list = new ArrayList<>();
        list.add(new HashMap<String,Object>(){{
            put("id", DATA_TYPE_ROLE);
            put("type", "List");
            put("name", "员工角色");
        }});
        list.add(new HashMap<String,Object>(){{
            put("id", DATA_TYPE_COUPON);
            put("type", "List");
            put("name", "优惠券类型");
        }});
        list.add(new HashMap<String,Object>(){{
            put("id", DATA_TYPE_BILL);
            put("type", "List");
            put("name", "对账单类型");
        }});
        list.add(new HashMap<String,Object>(){{
            put("id", DATA_TYPE_NOTICE_LOCATION);
            put("type", "List");
            put("name", "公告广播位置");
        }});
        list.add(new HashMap<String,Object>(){{
            put("id", DATA_TYPE_AD_LOCATION);
            put("type", "List");
            put("name", "广告位位置");
        }});
        list.add(new HashMap<String,Object>(){{
            put("id", DATA_TYPE_MEMBER_POWER);
            put("type", "Detail");
            put("name", "会员权益");
        }});
        return list;
    }

    /**
     * 登录权限
     */
    public static final String LOGIN_ADMIN = "ADMIN";   //总后台登录
    public static final String LOGIN_WX_USER = "WX_USER";   //微信App

    /**
     * 订单支付状态
     */
    public static final String ORDER_UNPAID = "UNPAID";  //未付款
    public static final String ORDER_PAID = "PAID";  //已付款
    public static final String ORDER_DELIVERED = "DELIVERED";  //已派单
    public static final String ORDER_SENT = "SENT";  // 已送达
    public static final String ORDER_CANCEL = "CANCEL";  // 已取消
    public static final String ORDER_REFUND = "REFUND";  // 已退款

    /**
     * 押金状态
     */
    public static final String DEPOSIT_REFUND = "REFUND";  // 已退款
    public static final String DEPOSIT_PAID = "PAID";  // 已付款
    public static final String DEPOSIT_UNPAID = "UNPAID";  // 未付款


    // 微信小程序 配置信息
    public final static String APP_ID = "wx02c3b391869e7f93";
    public final static String APP_SECRET = "47ecc147cf6366bff541263ff3c8d156";
    public final static String APP_TOKEN = "";
    public final static String APP_AES_KEY = "";

    //小程序端 收货方式
    public final static String RECEIVE_PICK_UP = "PICKUP";   // 自提
    public final static String RECEIVE_DELIVER = "DELIVER";   // 配送
    // 对账单类型
//    public final static String  TYPE_BILL_WATER = "WATER";  // 包装饮用水
//    public final static String  TYPE_BILL_DELIVER = "DELIVER";  // 配送费
//    public final static String  TYPE_BILL_GOODS = "GOODS";  // 商品
//    public final static String  TYPE_BILL_DEPOSIT = "DEPOSIT";  // 桶押金
//    public final static String  TYPE_BILL_RIDER_DEDUCT = "DEDUCT";  // 提手佣金
//    public final static String  TYPE_BILL_CASH_OUT = "CASHOUT";  // 提现

    //小程序端 首页模板 链接类型
    public final static Integer LINK_TYPE_IN = 1;   // 内部商品
    public final static Integer LINK_TYPE_OUT = 2;  // 自定义链接
    /**
     * 模板 列表数据展示模式
     */
    public static final String TEMPLATE_MODE_LIST = "LIST";   // 列表模式
    public static final String TEMPLATE_MODE_GRID = "GRID";   // 九宫格模式

    //优惠券状态
    public final static String COUPON_STATUS_USING = "USING";   //进行中
    public final static String COUPON_STATUS_NOT_START = "NOT_START";   //未开始
    public final static String COUPON_STATUS_ENDED = "ENDED";   //已结束

    //优惠券使用范围
    public final static String COUPON_SCOPE_ALL = "ALL";   //全店通用
    public final static String COUPON_SCOPE_TYPE = "TYPE";   //指定分类
    public final static String COUPON_SCOPE_GOODS = "GOODS";   //指定商品

    //是否需要押金  是否是桶装水分类
    public final static String  TYPE_DEPOSIT = "DEPOSIT";  //需要押金
    public final static String  TYPE_NO_DEPOSIT = "NO_DEPOSIT";  //不需要押金

    //员工身份
    public final static String  TYPE_ID_STAFF = "STAFF";  //员工
    public final static String  TYPE_ID_RIDER = "RIDER";  //骑手



}
